/*
 * Copyright (C) 2015 MC
 * All rights reserved.
 *
 * $$File: $$
 * $$DateTime: $$
 * $$Author: $$
 * $$Revision: $$
 */

package com.glela.common.util;

/**
 * @author 
 */
public enum MoblieTypeEnum
{
	YIDONG("1", "移动"), LIANTONG("2", "联通"), DIANXIN("3", "电信");
	public static String getNameBytypeId(String typeId)
	{
		MoblieTypeEnum[] all = MoblieTypeEnum.values();
		for (MoblieTypeEnum tmp : all) {
			if (tmp.getTypeId().equals(typeId)) {
				return tmp.getName();
			}
		}
		return "";
	}

	private String typeId;
	private String name;

	/**
	 * @param typeId
	 * @param name
	 */
	private MoblieTypeEnum(String typeId, String name)
	{
		this.typeId = typeId;
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public String getTypeId()
	{
		return typeId;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public void setTypeId(String typeId)
	{
		this.typeId = typeId;
	}

}
